﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PopMenuListList.aspx.cs"
    Inherits="WebSystemAdmin.sys.PopMenuListList" %>

<%@ Import Namespace="Enter.Common" %>
<%@ Import Namespace="Enter.Entity" %>
<%@ Register Assembly="aspNetPager" Namespace="Cncard.Web" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/admin_css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="tb_data" cellpadding="0" cellspacing="1">
            <tr class="tr_title">
                <th colspan="10">
                    <a href="PopMenuListEdit.aspx" class="A_Add">添加</a>
                </th>
            </tr>
            <tr class="tr_head">
                <td>
                    菜单编号
                </td>
                <td>
                    菜单名称
                </td>
              
                <td>
                    菜单序号
                </td>
                <td>
                    状态
                </td>
                <td>
                    操作
                </td>
            </tr>
            <asp:Repeater ID="rp_Data" runat="server" OnItemCommand="rp_Data_ItemCommand"  OnItemDataBound="rp_Data_ItemDataBound">
                <ItemTemplate>
                    <tr class='tr_content_o'>
                        <td>
                            <asp:Label ID="lbl_MenuNo" runat="server" Text='<%#Eval("MenuNo")%>'></asp:Label>
                           
                        </td>
                        <td>
                            <asp:Label ID="lbl_MenuText" runat="server" Text='<%#Eval("MenuText")%>'></asp:Label>
                        </td>
                      
                        <td>
                            <asp:Label ID="lbl_MenuOrder" runat="server" Text='<%#Eval("MenuOrder")%>'></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lbl_IsValid" runat="server" Text='<%# EnumHelper.GetEnumCNNameFromEnum((Sys_PopMenuListEntity.EnumIsValid)(byte)Eval("IsValid"))%>'></asp:Label>
                        </td>
                        <td>
                            <div>
                               <a href='PopMenuListEdit.aspx?ParentID=<%#Eval("MenuNo")%>' class="A_edit">添加权限</a> <a href='PopMenuListEdit.aspx?ID=<%#Eval("ID")%>' class="A_edit">编辑</a><asp:LinkButton
                                    ID="LBtnDel" CommandName="Delete" class="A_Del" OnClientClick="return  confirm('你确认要删除吗?')"
                                    CommandArgument='<%#Eval("ID") %>' runat="server">删除</asp:LinkButton></div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6" align="center" style="background-color:White;">
                            <table class="tb_data" style="background-color:White; margin-left:100px; width:80%" cellpadding="0" cellspacing="1">
                                <asp:Repeater ID="rp_cData" runat="server">
                                    <ItemTemplate>
                                        <tr class='tr_content_j'>
                                            <td >
                                                <asp:Label ID="lbl_MenuNo" runat="server" Text='<%#Eval("MenuNo")%>'></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lbl_MenuText" runat="server" Text='<%#Eval("MenuText")%>'></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lbl_MenuUrl" runat="server" Text='<%#Eval("MenuUrl")%>'></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lbl_MenuOrder" runat="server" Text='<%#Eval("MenuOrder")%>'></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lbl_IsValid" runat="server" Text='<%# EnumHelper.GetEnumCNNameFromEnum((Sys_PopMenuListEntity.EnumIsValid)(byte)Eval("IsValid"))%>'></asp:Label>
                                            </td>
                                            <td>
                                                <div>
                                                    <a href='PopMenuListEdit.aspx?ParentID=<%#Eval("ParentNo")%>&ID=<%#Eval("ID")%>' class="A_edit">编辑</a><asp:LinkButton
                                                        ID="LBtnDel" CommandName="Delete" class="A_Del" OnClientClick="return  confirm('你确认要删除吗?')"
                                                        CommandArgument='<%#Eval("ID") %>' runat="server">删除</asp:LinkButton></div>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </table>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
        <cc1:AspNetPager ID="ucPager" runat="server" NumericButtonTextFormatString="[{0}]"
            HorizontalAlign="right" ShowCustomInfoSection="Left" OnPageChanged="ucPager_PageChanged">
        </cc1:AspNetPager>
    </div>
    </form>
</body>
</html>
